package com.syx.migration.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.syx.migration.domain.base.TenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 借阅规则对象 syx_reader_rules
 *
 * @author Syx
 * @date 2024-03-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("syx_reader_rules")
public class SyxReaderRules extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 借阅规则类型(0:通用,1:图书,2:期刊)
     */
    private String type;

    /**
     * 借阅类别id
     */
    private Long readerCategoryId;

    /**
     * 借阅数量
     */
    private Long borrowNumber;

    /**
     * 借阅天数
     */
    private Long borrowDay;

    /**
     * 续借次数
     */
    private Long renewNum;

    /**
     * 预约次数
     */
    private Long reservationNum;

    /**
     * 预约天数
     */
    private Long reservationDay;

    /**
     * 超期处罚金额
     */
    private BigDecimal penalty;

    /**
     * 备注
     */
    private String remark;


}
